package com.wen.controller;

import com.wen.common.R;
import com.wen.pojo.ProductType;
import com.wen.pojo.SysUsers;
import com.wen.service.SysUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("/SysUsers")
public class SysUsersController {

    @Autowired
    private SysUsersService service;

    @GetMapping("/list")
    public R sel(){
        List<SysUsers> list = service.list();
        return R.ok().data("list",list);
    }





}
